package com.only4play.practice.common.model;

import java.util.Map;

/**
 * @author mengdy
 */
public class PageRequestWrapper<T> {
    private T bean;
    private Integer pageSize;
    private Integer page;
    private Map<String, String> sorts;

    public PageRequestWrapper() {
    }

    public T getBean() {
        return this.bean;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public Integer getPage() {
        return this.page;
    }

    public Map<String, String> getSorts() {
        return this.sorts;
    }

    public void setBean(T bean) {
        this.bean = bean;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public void setSorts(Map<String, String> sorts) {
        this.sorts = sorts;
    }

    public String toString() {
        return "PageRequestWrapper(bean=" + this.getBean() + ", pageSize=" + this.getPageSize() + ", page=" + this.getPage() + ", sorts=" + this.getSorts() + ")";
    }
}
